package com.example.demo.mapper;

import com.example.demo.entity.pojo.CostRecord;
import com.example.demo.entity.vo.CostRecordVo;
import com.example.demo.entity.vo.RecordVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CostRecordMapper {
    //添加纪录
    int addRecord(@Param("money") double money,@Param("cardId") int cardId,int state);


    //获取所有流水纪录
    List<CostRecord> getAllRecord(int cid);

    //根据类型获取纪录
    List<CostRecord> getRecordByType(int cid, int type);
}
